// 应用一个全局的变量
@import "../../../assets/less/global_style";

// 生成的表格
#tableRelate {
   .table-nav {
     select {
       overflow: auto;
       float: left;
       width: auto;
       padding: 0 2%;
       font-size: 14px;
       option {
         font-size: 12px;
       }
       option:nth-child(1) {
         font-weight: bold;
         font-size: 14px;
       }
     }
     .form-group {
       float: right;
     }
   }
   .table-wrap {
     table tr {
       td:nth-last-child(1) {
         padding: 0;
         button {
           color: @fontWhite;
           #bootstrap-button();
           background-color: green;
           margin: 0 5px;
         }
         button.btn-delete {
           .btn-delete();
         }
       }
       td {
         .td-state-not-normal {
           color: red;
         }
       }
     }
   }
 }

// modal
.modal {
  .modal-header {
    border-color: transparent;
    border-bottom: @lineGray;
    .modal-title {
      font-size: 18px;
    }
  }
  .modal-body {
    .modal-describe {
      div{
        width: 100%;
        margin: 5px 0;
        &>* {
          display: inline-block;
        }
        p {
          width: fit-content;
          font-weight: 600;
        }
        p:nth-child(3) {
          width: fit-content;
          margin-left:20px ;
          color: green;
          line-height: 20px;
          span {
            margin-right: 5px;
          }
        }
        select,input {
          width: 250px;
        }
      }
      div:nth-child(2) {
        margin-bottom: 20px;
      }
    }
    div:nth-child(2) {
      .nav-tabs {
        border-bottom: 1.5px solid #ddd;
        margin-top: 20px;

        li {
          margin-bottom:-1.5px;
        }
        li a {
          font-size: 16px;
          font-weight: 600;
        }
        li.active a{
          border: 1.5px solid #ddd;
          border-bottom-color: transparent;
          font-size: 17px;
          background-color: @bkLightGray;
        }

      }
      .tab-content{
        .tab-pane {
          table {
            margin-bottom: 20px;
            border: 2px solid #ddd;
            border-top-color: transparent;

            thead, tbody tr {
              display: table;
              width: 100%;
              table-layout: fixed;
            }
            thead {
              tr th {
                font-size: 14px;
                font-weight: 600;
              }
            }
            tbody {
              display:block;
              height: 300px;
              overflow-y:scroll;
              tr td:last-child {
                padding: 0;
                vertical-align: middle;
                button {
                  #bootstrap-button()
                }
              }
            }
          }
        }
      }
    }
    .btnS {
      height: 40px;
      text-align: center;
      line-height: 40px;
      margin:0 30px;

      p {
        display: inline-block;
        .btn-query();
        margin: 0 20px;
      }
    }
  }

  .modal-footer {
    border-color: transparent;
    padding-top: 0;
  }
}
#deviceCheck {
  .modal-describe{
   div p {
     font-weight: 600;
     span {
       width: auto;
       text-align: left;
       font-weight: 500;
     }
   }
  }
}
